package test.callback;

import java.util.Calendar;

import junit.framework.TestCase;

import test.WorkFlowTest;

import com.cait.workflowserver.analysis.AbstractAnalyser;
import com.cait.workflowserver.analysis.AnalyseContext;
import com.cait.workflowserver.analysis.WiMonthGeneralAnalyser;
import com.cait.workflowserver.assistantcomponent.applicationagent.ApplicationAgentManager;
import com.cait.workflowserver.definition.ActualParameterCollection;
import com.cait.workflowserver.definition.Application;
import com.cait.workflowserver.execution.FlowExecuteContext;

public class testcallback  extends TestCase {

	public testcallback(String key) {
		super(key);
	}
	
	public void testCallApplication() {
		ApplicationAgentManager appmanger=new ApplicationAgentManager();
		Application app=new Application();
		ActualParameterCollection apc=new ActualParameterCollection();
		FlowExecuteContext ec=new FlowExecuteContext();
		app.setUrl("http://10.17.8.105:8080");
		app.setAgentName("test.callbackTest");
		if(appmanger.callApplication(app, apc, ec))
		{
			System.out.println("回调成功");
			
		}else
		{
			System.out.println("回调失败");
		}
		
		
		
	}

	@Override
	protected void setUp() throws Exception {
		super.setUp();	
	}

	@Override
	protected void tearDown() throws Exception {
		super.tearDown();
	}
}
